home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 23
/
AACD 23.iso
/
AACD
/
Programming
/
tek
/
list
/
addhead.c
next >
Wrap
C/C++ Source or Header
|
2001-05-12
|
342b
|
22 lines
#include "tek/list.h"
/*
** TEKlib
** (C) 2001 TEK neoscientists
** all rights reserved.
**
** void TAddHead(TLIST *list, TNODE *node)
**
** add node at head of list
*/
TVOID TAddHead(TLIST *list, TNODE *node)
{
TNODE *temp = list->head;
list->head = node;
node->succ = temp;
node->pred = (TNODE *) &list->head;
temp->pred = node;
}